class Message {
  String type;
  String msg;
  bool isSelf;
  int msgID;
  int from;
  int to;

  Message(this.type, this.msg, this.isSelf, {this.msgID, this.from, this.to});

  set pType(String _type) {
    this.type = _type;
  }

  set pMsg(String _msg) {
    this.msg = _msg;
  }

  set pIsSelf(bool _isSelf) {
    this.isSelf = _isSelf;
  }

  set pMsgID(int _msgID) {
    this.msgID = _msgID;
  }

  set pFrom(int _from) {
    this.from = _from;
  }

  set pTo(int _to) {
    this.to = _to;
  }
}
